﻿<%@ Page Title="" Language="C#" MasterPageFile="~/StatisticPage/StatisticMaster.Master" AutoEventWireup="true" CodeBehind="TTDB.aspx.cs" Inherits="FPTPages.StatisticPage.TTDB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h1 class="title">Thông tin đội bóng</h1>
<p>Post by <a href="#">VuPTT</a></p>
    <asp:Label ID="Label1" runat="server" Text="Chọn đội:" Width="100px"></asp:Label>
    <asp:DropDownList ID="ddlTeams" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlTeams_SelectedIndexChanged">
    </asp:DropDownList>
    <hr />
    <asp:GridView ID="gdvTTDB" runat="server" Width="537px" BackColor="#DEBA84" 
    BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
    CellSpacing="2" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="TeamName" HeaderText="TeamName" 
                SortExpression="TeamName" />
            <asp:BoundField DataField="MemberName" HeaderText="MemberName" 
                SortExpression="MemberName" />
            <asp:BoundField DataField="Number" HeaderText="Number" 
                SortExpression="Number" />
            <asp:BoundField DataField="Goals" HeaderText="Goals" SortExpression="Goals" />
            <asp:BoundField DataField="YellowCards" HeaderText="YellowCards" 
                SortExpression="YellowCards" />
            <asp:BoundField DataField="RedCards" HeaderText="RedCards" 
                SortExpression="RedCards" />
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ProjectDatabaseConnectionString2 %>" 
        SelectCommand="SELECT * FROM [TeamInfo] ORDER BY [MemberName], [Goals]">
    </asp:SqlDataSource>
<br />

</asp:Content>
